import java.math.BigInteger;
import java.util.Scanner;

/**
 *  二进制求和(先用十进制求和,再将结果转换为二进制)
 */
public class BinarySum2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.nextLine();
        String b = sc.nextLine();
        BigInteger x = new BigInteger(a,10);
        BigInteger y = new BigInteger(b,10);
        int c = x.intValue()+ y.intValue();
        System.out.println(Integer.toBinaryString(c));
    }
}
